<div *ngIf="service.messages.length">
    <h2>信息</h2>
    <button (click)="service.clear()">清除</button>
    <div *ngFor="let msg of service.messages">{{msg}}</div>
</div>
